package com.lyfx.reptiles.feign;

import com.lyfx.common.pojo.CatPojo;
import com.lyfx.common.pojo.CoursePojo;
import com.lyfx.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author lsy
 * @create 2020-07-26-13:36
 */
@FeignClient("lyfx-ly")
public interface CategoryFeign {

    @RequestMapping("/ly/classcategory/beach/save")
    R beachSave(@RequestBody List<CatPojo> catPojos);

    @PostMapping("/ly/classcourse/beach/save/class")
    R beachSaveCourse(@RequestBody List<CoursePojo> coursePojos);

    @GetMapping("/ly/classcourse/my/test")
    R testMy(@RequestParam("string") String string);
}
